import request from "@/utils/request";

export function getListInfo(params) {
    return request({
        url: '/info/getListInfo',
        method: 'post',
        params
    });
}

export function selectInfoById(params) {
    return request({
        url: '/info/selectInfoByIdAndToken',
        method: 'post',
        withCredentials: true,
        params
    });
}

export function getListInfoByVo(params) {
    return request({
        url: '/info/getListInfoByVo',
        method: 'post',
        params
    });
}

export function deleteInfo(params) {
    return request({
        url: '/info/deleteInfo',
        method: 'post',
        params
    });
}

export function addInfo(params) {
    return request({
        url: '/info/addInfo',
        method: 'post',
        params
    });
}

export function updateInfo(params) {
    return request({
        url: '/info/updateInfo',
        method: 'post',
        params
    });
}

// export function toAiPay(url, data) {
//     return request({
//         url: '/info/' + url,
//         method: 'post',
//         data
//     });
// }